package com.school.campus.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.school.common.annotation.Excel;
import com.school.common.core.domain.BaseEntity;

/**
 * 教研室信息对象 teaching_research_office
 * 
 * @author wwj
 * @date 2025-10-31
 */
public class TeachingResearchOffice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 研究方向 */
    @Excel(name = "研究方向")
    private String mainDirection;

    /** 二级学院ID */
    @Excel(name = "二级学院ID")
    private Long secondaryCollegeId;

    /** 创建日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    /** 修改日期 */
    private Date modifyDate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setMainDirection(String mainDirection) 
    {
        this.mainDirection = mainDirection;
    }

    public String getMainDirection() 
    {
        return mainDirection;
    }

    public void setSecondaryCollegeId(Long secondaryCollegeId) 
    {
        this.secondaryCollegeId = secondaryCollegeId;
    }

    public Long getSecondaryCollegeId() 
    {
        return secondaryCollegeId;
    }

    public void setCreateDate(Date createDate) 
    {
        this.createDate = createDate;
    }

    public Date getCreateDate() 
    {
        return createDate;
    }

    public void setModifyDate(Date modifyDate) 
    {
        this.modifyDate = modifyDate;
    }

    public Date getModifyDate() 
    {
        return modifyDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("mainDirection", getMainDirection())
            .append("secondaryCollegeId", getSecondaryCollegeId())
            .append("createDate", getCreateDate())
            .append("modifyDate", getModifyDate())
            .toString();
    }
}
